{% extends 'layout.html' %}

{% block content %}
    <form method="post" novalidate>
        {% csrf_token %}
        <div class="container">
            {% for field in form %}
                <label for="inputEmail3" class="col-sm control-label"><span class="glyphicon glyphicon-ok"
                                                                            aria-hidden="true"></span> {{ field.label }}:</label>
                {{ field }}
             <p style="color: red"> {{ field.errors.0 }}</p>
            {% endfor %}
            <input type="submit" style="margin-top: 20px" class="btn btn-success">
        </div>
    </form>


{% endblock %}